home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3946 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.1 KB

  1. Path: news.polymtl.ca!cormier
  2. From: cormier@step.polymtl.ca (Mario Cormier)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Multithreading in C++?
  5. Date: 26 Jan 1996 21:26:54 GMT
  6. Organization: STEP
  7. Message-ID: <4ebguu$ck0@service.polymtl.ca>
  8. References: <4d97fc$ps6@galaxy.ucr.edu> <4co6mf$98d@serv.hinet.net> <4cta8m$i74@isoit109.bbn.hp.com> <4drps6$fa2@vixen.cso.uiuc.edu>
  9. NNTP-Posting-Host: step.polymtl.ca
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Scott J. McCaughrin (sjmccaug@prairienet.org) wrote:
  13.  
  14. : In a previous article, thp@cs.ucr.edu (Tom Payne) says:
  15.  
  16. : >Manfred_Lange (Manfred_Lange@bbn.hp.com) wrote:
  17. : >: jcwang@hntp2.hinet.net (John C. Wang) wrote:
  18. : >: >
  19. : >: >Does anyone know if there is a standard C interface for multithread
  20. : >: >programming? Under MS Visual C++ there are thread functions for the NT, but I
  21. : >: >am pretty sure that's not a standard function call. What do they use in UNIX?
  22. : >: >Does the POSIX standards specify this?
  23. : >: >
  24. : >: >Please reply to my email if possible.
  25. : >: >
  26. : >: >jcwang@csie.ntu.edu.tw
  27. : >: >
  28. : >: 
  29. : >: As far as I know, there are no functions in the standard libraries that deal 
  30. : >: with threads. This is typically left to the underlying operating system.
  31. : >
  32. :  What about spawn() for child processes, and exec()?
  33.  
  34. These are, as you mentionned, for processes.  Threads are quite different
  35. from processes.  To make a long story short, they are concurrent tasks
  36. _within the same process_.  It is also true to say that they are still very
  37. OS specific.
  38.  
  39. :  sjm
  40.  
  41.  
  42. --
  43. ============================================================================
  44. ==          OS/2 Development          ==  Mario Cormier                   ==
  45. ==      ####   ####    ##  ####       ==  Computer Engineering            ==
  46. ==     ##  ## ##      ##  ##  ##      ==  Ecole Polytechnique de Montreal == 
  47. ==     ##  ##  ####   ##     ##       ==                                  ==
  48. ==     ##  ##     ## ##    ##         ==  cormier@info.polymtl.ca         ==
  49. ==      ####   ####  ##   ######      ==  cormier@step.polymtl.ca         ==
  50. ============================================================================
  51.